<template>
	<view :style="themeColor">
		<view class="page">
			<view class="flex benben-position-layout flex flex-wrap align-center myfabu_flex_0"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex flex-wrap align-center justify-between flex-sub myfabu_fd0_0'>
					<view class='flex flex-wrap align-center myfabu_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back"
						data-url="1">
						<text class='fu-iconfont2  myfabu_fd0_0_c0_c0'>&#xE794;</text>
					</view>
					<view class='flex flex-wrap align-stretch justify-center'>
						<text class='myfabu_fd0_0_c1_c0'>我的发布</text>
					</view>
					<view class='flex flex-wrap align-center justify-end myfabu_fd0_0_c0'>
					</view>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<!---flex布局flex布局开始-->
			<view class="flex benben-flex-layout flex-wrap align-center">
				<view>
					<benben-flex-tabs class-name='myfabu_benbenTabsfd1_0' v-model="tabsTypefd1_0" ref="benben_tabsfd1_0"
						select-mark="benben_tabsfd1_0" key="benben_tabsfd1_0" :open-title-type='false'
						:open-sticky='true' :top='0' :is-show-content='false' :scrollspy='false'
						:tabs-info.sync="tabsInfofd1_0" @change="getyg65bb696b7d244Func">

						<scroll-view @scroll="tabsInfofd1_0.scrollX = $event.detail.scrollLeft" id="benben_tabsfd1_0"
							class="benben-tabs" style="width:750rpx" :scroll-x="true"
							:scroll-left.sync="tabsInfofd1_0.moveX" scroll-with-animation="all .3s ease">
							<view class="benben-tabs-content" id="benben_tabsfd1_0-content">
								<view id="benben_tabsfd1_0-title"
									class="benben-tabs-title flex flex align-center justify-around">
									<view
										:class="{ 'checkTitlefd1_0': tabsTypefd1_0 == '0', 'flex flex-wrap align-center': true }"
										@tap="tabsTypefd1_0 = '0'" :id="`benben_tabsfd1_0-title-item-${'0'}`">
										<text>审核中</text>
									</view>
									<view
										:class="{ 'checkTitlefd1_0': tabsTypefd1_0 == '1', 'flex flex-wrap align-center': true }"
										@tap="tabsTypefd1_0 = '1'" :id="`benben_tabsfd1_0-title-item-${'1'}`">
										<text>已拒绝</text>
									</view>
									<view
										:class="{ 'checkTitlefd1_0': tabsTypefd1_0 == '2', 'flex flex-wrap align-center': true }"
										@tap="tabsTypefd1_0 = '2'" :id="`benben_tabsfd1_0-title-item-${'2'}`">
										<text>已发布</text>
									</view>
									<view
										:class="{ 'checkTitlefd1_0': tabsTypefd1_0 == '3', 'flex flex-wrap align-center': true }"
										@tap="tabsTypefd1_0 = '3'" :id="`benben_tabsfd1_0-title-item-${'3'}`">
										<text>已删除</text>
									</view>
								</view>
								<view :style="{ left: tabsInfofd1_0.lineleft, maxWidth: tabsInfofd1_0.lineWidth ,}"
									id="benben_tabsfd1_0-line"
									class="benben-tabs-line flex benben-flex-tabs-line myfabu_linefd1_0"></view>
							</view>
						</scroll-view>
					</benben-flex-tabs>
				</view>
				<template v-for='(item,key0) in my_cases'>
					<view class='flex flex-wrap align-center justify-center myfabu_fd1_1' @tap.stop="handleJumpDiy"
						data-type="navigateTo" :data-url="`/pages/shouye/fabudetailnew/fabudetailnew?aid=${item.aid}`"
						:key='key0'>
						<view class='flex flex-wrap align-center justify-between myfabu_fd1_1_c0'>
							<view class='flex flex-direction align-stretch'>
								<view class='flex flex-wrap align-center myfabu_fd1_1_c0_c0_c0'>
									<view class='flex flex-wrap align-center myfabu_fd1_1_c0_c0_c0_c0'>
									</view>
									<text>案件号：</text>
									<text>{{item.sn}}</text>
								</view>
								<view class='flex flex-wrap align-center myfabu_fd1_1_c0_c0_c1'>
									<text class='myfabu_fd1_1_c0_c0_c1_c0'>案件类型：</text>
									<text>{{item.servicecate_mingcheng}}</text>
								</view>
								<view class='flex flex-wrap align-center myfabu_fd1_1_c0_c0_c2'>
									<text class='myfabu_fd1_1_c0_c0_c2_c0'>{{item.create_time}}</text>
								</view>
							</view>
							<view class='flex flex-wrap align-center justify-center myfabu_fd1_1_c0_c1'>
								<text class='myfabu_fd1_1_c0_c1_c0'>查看详情</text>
							</view>
						</view>
					</view>
				</template>
				<fu-empty :pagingListLoadedAll="pagingListLoadedAll" :pagingListNoListData="pagingListNoListData"
					:listDataLength="listDataLength" :isLoadInit="isLoadInit"></fu-empty>
			</view>

			<!---flex布局flex布局结束-->


		</view>
	</view>
</template>
<script>
	import pagingList from '@/common/mixin/paging_list.js';
	import {
		validate
	} from '@/common/utils/validate.js'

	export default {
		components: {},
		mixins: [pagingList],

		data() {
			return {
				"tabsInfofd1_0": {
					lineleft: '',
					lineWidth: '',
					moveX: 0,
					scrollX: 0,
					PageScrollX: 0
				},
				"tabsTypefd1_0": "",
				"minixPagingListsApi": "",
				"pageingListApiMethod": "",
				"allowOnloadGetList": false,
				"my_cases": [],
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},

		},
		watch: {},
		onLoad(options) {
			let {
				state
			} = options
			if (state !== undefined) this.tabsTypefd1_0 = state;
			// if(this.tabsTypefd1_0==0){
			// 	this.getyg65bb696b7d244Func()
			// }
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {
			if(uni.getStorageSync("backtype")){
				uni.removeStorageSync("backtype");
				this.getyg65bb696b7d244Func()
			}
			
		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			//我的案件列表
			getyg65bb696b7d244Func() {
				this.minixPagingListsApi = global.apiUrls.post65bb696b7d244;
				this.pageingListApiMethod = 'post';
				this.allowOnloadGetList = false;
				this.pagingListPostDataContent = {
					dingdanzhuangtai: this.tabsTypefd1_0
				}
				this.listData = [];
				this.my_cases = this.listData;
				this.pagingListToggle();

			},
			pagingListPostData() {
				return this.pagingListPostDataContent
			},
			
			// //tabs切换
			// tabschange(){
			// 	this.getyg65bb696b7d244Func();
			// }
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: #eeeeee;
		background-size: 100% auto;
	}

	.myfabu_flex_0 {
		background: #fff;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.myfabu_fd0_0_c1_c0 {
		font-size: 36rpx;
		font-weight: 700;
		color: #333333;
		line-height: 50rpx;
	}

	.myfabu_fd0_0_c0_c0 {
		font-size: 36rpx;
		color: #333;
	}

	.myfabu_fd0_0_c0 {
		width: 120rpx;
	}

	.myfabu_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
	}

	.myfabu_fd1_1_c0_c1_c0 {
		color: #333333;
		font-size: 24rpx;
		font-weight: 400;
	}

	.myfabu_fd1_1_c0_c1 {
		border: 1px solid #DEDEDE;
		background: #FFFFFF;
		border-radius: 8rpx;
		width: 120rpx;
		height: 54rpx;
	}

	.myfabu_fd1_1_c0_c0_c2_c0 {
		color: #999999;
		font-size: 24rpx;
		font-weight: 400;
		margin: 0rpx 0rpx 0rpx 24rpx;
	}

	.myfabu_fd1_1_c0_c0_c2 {
		margin: 8rpx 0rpx 0rpx 0rpx;
	}

	.myfabu_fd1_1_c0_c0_c1_c0 {
		text-align: center;
	}

	.myfabu_fd1_1_c0_c0_c1 {
		color: #1A1A1A;
		font-size: 28rpx;
		font-weight: 500;
		margin: 8rpx 0rpx 0rpx 24rpx;
	}

	.myfabu_fd1_1_c0_c0_c0_c0 {
		background: #E9B404;
		width: 4rpx;
		height: 24rpx;
		margin: 0rpx 12rpx 0rpx 0rpx;
	}

	.myfabu_fd1_1_c0_c0_c0 {
		color: #1A1A1A;
		font-size: 28rpx;
		font-weight: 500;
	}

	.myfabu_fd1_1_c0 {
		width: 702rpx;
		height: 180rpx;
		margin: 0rpx 0rpx 0rpx 0rpx;
	}

	.myfabu_fd1_1 {
		border-top: 1px solid rgba(187, 187, 187, 1);
		background: rgba(255, 255, 255, 1);
		width: 100%;
		background-size: 100% auto;
	}

	.myfabu_linefd1_0 {
		background: rgba(38, 191, 1, 1);
		width: 100rpx;
		height: 8rpx;
		top: 80rpx;
		background-size: 100% auto !important;
	}

	.checkTitlefd1_0 {
		font-weight: 700 !important;
		font-size:32rpx !important;
		color: #26BF01 !important;
		background-color: rgba(255, 255, 255, 1) !important;
	}

	::v-deep .myfabu_benbenTabsfd1_0 {
		background: #fff;
		width: 750rpx;
		height: 90rpx;
		white-space: nowrap;
		text-align: center;
		font-size: 32rpx;
	}
</style>